package com.mawendaxiong.blogprovider.blogType.mapper;

import com.mawendaxiong.blogprovider.blogType.entity.BlogType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mawendaxiong
 * @since 2020-06-23
 */
@Mapper
@Repository
public interface BlogTypeMapper extends BaseMapper<BlogType> {
    @Select("select * from BlogType where isDel = 0;")
    List<BlogType> getAllType();

    int updateBlogType(@Param("blogType") BlogType blogType);
}
